<?php
$this->headTitle('Mail','append');
?>
<div class="dashboard-menu dashboard-admin">
    <span class="back">&nbsp;</span>
    <h1>Template Mail</h1>        
</div>
<div class="row placeholders">
    <div class="col-md-12">
        <div class="widget-big">
            <div class="table table-responsive">
                <div class="search-result">
                    <table class="table table-bordetext-danger table-striped table-condensed table-hover" border="0" cellspacing="0" cellpadding="0">
                        <thead>
                            <tr class="warning">
                                <th style="width:10%;">ID</th>
                                <th style="width:40%;">Tác vụ</th>
                                <th style="width:40%;">Người gởi</th>
                                <th style="width:40%;">Tiêu đề</th>                                                                                                
                                <th style="width:10%;">Chức năng</th>
                            </tr>
                        </thead>
                        <tbody>
                        <?php
                            foreach ($this->template as $mail){
                        ?>
                            <tr>
                                <td style="width:10%;" class="text-left"><?=$mail['id'];?></td>
                                <td style="width:40%;" class="text-left"><?=$mail['task'];?></td>
                                <td style="width:40%;" class="text-left"><?=$mail['name'];?></td>
                                <td style="width:40%;" class="text-left"><?=$mail['subject'];?></td>                                                                                                                                                               
                                <td style="width:10%;" class="text-left">                                
                                    <a class="glyphicon glyphicon-pencil" href="<?=$this->url(array('module'=>'admin', 'controller'=>'mail', 'action'=>'edit', 'id'=>$mail['id']))?>" title="Sửa mẫu"></a>
                                    &nbsp;&nbsp;                                
                                    <!--<a class="glyphicon glyphicon-remove" href="<?=$this->url(array('module'=>'admin', 'controller'=>'productcat', 'action'=>'delete', 'id'=>$mail['id']))?>" title="Xóa danh mục cấp 1 này"></a>-->
                                </td>
                            </tr>
                        <?php
                            } 
                        ?>
                        </tbody>
                    </table>
                </div>
            </div>
            <div class="clearfix"></div>
        </div>
    </div>
</div>